<?php if(!empty($listProduct)){?>
<div id="<?php echo $this->id ?>" class="newest-products">
    <div class="head">
        <?php echo $category->name ?>-Moi cap nhat ngay <?php echo $updateTime ?>
    </div>
    <div class="products">
        <?php foreach ($listProduct as $i=>$product){ ?>
            <div class="product-content">
                <br style="line-height: 5px;">
                <div class="pthumb">
                    <?php if($product->avatar){ 
                        echo CHtml::image(Yii::app()->baseUrl. '/'. $product->avatar->url, '', array('width'=>100, 'height'=>90));
                    }?>
                </div>
                <div class="pname">
                    <?php echo CHtml::link($product->name, Yii::app()->createUrl('product/detail', array('id'=>$product->id))) ?>
                </div>
                <div class="pshortcontent">
                    <?php echo $product->content_1 ?>
                </div>
                <div class="pprice">
                    Gia ban le: <span><?php echo $product->price ?> VND</span>
                </div>
            </div>
        <?php } ?>
    </div>
    <div style="clear: both"></div>
</div>
<?php } ?>
